Statistics frequency of characters