getNumTriangles fixed, and Added getNumObjects()

getNumTriangles fixed, and Added getNumObjects() please check