added getNumManifolds