Counts the number of times a particular character, such as e, appears in a file
If you are using java 8 you can use streams. 

Also IMO for this kind of functionality a static method would me more appropriate.

 public static long countCharacter(Path path, char lookFor) throws IOException {

     try (Stream&lt;String&gt; stream = Files.lines(path)) {

         return stream.flatMapToInt(String::chars)
                      .filter(c -&gt; c == (int) lookFor)
                      .count();
     }
 }