Count bases within genes