countHi: how many "hi"s?
Return the number of times "hi" appears anywhere in the string. Step through countHi and watch a two-letter window, substring(i, i+2), slide along the string one box at a time. The loop stops one box early because the last letter has no partner to its right.