updated NaiveBayesClassifier.java with methods to increment
category and feature counts