Amazon Interview Question

return the number palyndromes in a string.