C backend - use int for nCount instead of long (64 bits compatibility)