Can now count a field type or get all records of a type