counts same chars and allows to analyze big files