This just reuses the algorithm in TempoMap::get_grid() by asking for just the bar grid, and counting the size of the result