Count should return an integer type