use size instead of count to avoid SQL counts