minor cleanup of types in _utils_cython.count_trans