fixed problem when counting. it was throwing error:  ValueError: Expecting something that has __geo_interface__ or a mapping, got 86L