add getMeshCount method