added count_unigrams method