Change `countOccurrencesOf`to use String.findAll.