DOC minimal API documentation in README
ENH rewrite count_trans to Cython
ENH reorganize _utils and use np.intp

np.intp is what's returned by np.unique, so we better use it to prevent
conversions. Used it for counting too, just to be on the safe side.

Removed extra function call around count_trans.