count bases matched