You are given a list words of strings.
Return an int: the number of words that are palindromes, meaning the word reads the same forwards and backwards (for example "level" and "noon"). Comparison is case-sensitive, and a single-character word counts as a palindrome.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
['level', 'world', 'noon', 'python']
Returns
2