Bar/beat counter