Use proper count() for homepage