Write a function that returns the count of all Distinct Palindromic Substrings in a string.
Input:-abba
Input Description: Input a single string.
Output: 4
Output Description: Output the count of palindromic substrings.
Constraints: 1 <= string length <= 10^6
Explanation: