Changed getNumIndices to getNumVertices in case indices are not added