Remove old source codes to count frequencies of N-grams.
Count the frequencies of N-grams and their contexts which appeared in the training data.
Calculate the probabilities of N-grams.
Ignore invalid sub N-grams.
TODO: Refactor. This method is too messy.
Merge branch 'feature/count-freq'