getNumTriangles fixed, and added getNumObjects()  #2