   THIndex_t *input_data = THIndexTensor_(data)(input);   ptrdiff_t numel = THIndexTensor_(nElement)(input);    for (i = 0; i<numel; i++)   {     long k = input_data[i] - TH_INDEX_BASE;     count_data[k]