getNumTriangles fixed, and added getNumObjects()

__getNumTriangles__ fixed, and added __getNumObjects()__ please check