Fix a bug on count numberOfElement
Fix a bug on count numberOfElement