Create countDistinctPalindromes