public int GetTotalFrequency(string word) { if (!frequencies.ContainsKey(word)) { return 0; } else { return frequencies[word].Total; } }