Added way of counting total number of properties.