How many 10-bit strings start with or end with or both?