Better counting of total (don't convert collection to array)