function int count(string& word) done