#K73502. Count Palindromes
Count Palindromes
Count Palindromes
You are given a list of strings. Your task is to determine how many of these strings are palindromes. A string is considered a palindrome if it reads the same backward as forward. Note that the check is case-sensitive, meaning that 'radar' is a palindrome, but 'Radar' is not.
For example, the string "level" is a palindrome, while the string "hello" is not.
inputFormat
The input is provided via stdin and follows this format:
- The first line contains an integer n which denotes the number of strings.
- The following n lines each contain one string.
outputFormat
Output a single integer to stdout which represents the count of palindromic strings among the provided list.
## sample5
radar
hello
level
world
rotor
3