Amazon interview question

return the number palyndromes in a string.