updated the count logic for properties