c = 0

while str = STDIN.gets

  break if str == "\n"

  ar = str.chomp.split(//)

  if ar.size == 1
    c += 1
  else
    mid = (ar.size / 2.0).floor
    c += 1 if ar[0..mid - 1] == ar[-mid..-1].reverse
  end

end

puts c