count palindromic really tricky