Fixing the number of properties calculation.