Count the Number of Good Partitions