base pair count function added