Changed .count to .length