Polygon count now returns correct value.