Identifying and Counting Basic Rhythms in Music Notation