[NUI] Fix incorrect calculation of configGestureCount.