Counts the no of  occurrence of individual characters in a passage