Number of different bipalindromes