Renamed CntFreqChar function to better reflect its task
Fixed error in ReadStr function