Create a function that returns the number of palindrome numbers in a specified range (inclusive).
For example, between 8 and 34, there are 5 palindromes: 8, 9, 11, 22 and 33. Between 1550 and 1552 there is exactly one palindrome: 1551.
countPalindromes(1, 10) ➞ 9
countPalindromes(555, 556) ➞ 1
countPalindromes(878, 898) ➞ 3