Adds the number of elements to the lined list and checks whether the linked list items are palindrome or not