Brooksource Interview Question

Write a function that counts palindromes within a string, counting single character substrings as palindromes.