Count the Number of Consistent Strings