Creates a counter and adds parameter string. word is the word to count
WordFrequencyCounter.fromString(String? str, String? word) : _word = word { add(str!); }