count() returns an integer, shouldn't treat it like a boolean