Подскажите, пожалуйста, почему валидатор не принимает следующее решение:
public class Solution {
    public static void main(String[] args) throws IOException {
        FileReader reader = new FileReader(args[0]);
        int counter = 0;
        while (reader.ready()) {
            String input = String.valueOf(reader.read());
           if (input.toLowerCase().matches("[a-z]"))
                counter++;
        }
        reader.close();
        System.out.println(counter);
    }
}