protected int getCount(String word, String tag) { TagCount count = dict.get(word); if (count == null) { return 0; } else { return count.get(tag); } }