return cube counts by reference, to improve performance