Changed the property names for key and count