implemented wchar version of getNiCount