??
package com.javarush.task.task18.task1807;
/*
Подсчет запятых
*/
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Solution {
public static void main(String[] args) throws Exception {
FileInputStream filereader = new FileInputStream // создаем и открываем поток, вводим название файла
(new BufferedReader(new InputStreamReader(System.in)).readLine());
List<Byte> array = new ArrayList<>();
while (filereader.available()>0){
array.add((byte)filereader.read());
}
System.out.println(Collections.frequency(array, 44));
filereader.close();
}
}