Count Paths That Can Form a Palindrome in a Tree