Results of count() should be assign to variable instead of twice call