this should be

counts : scipy.sparse.csr_matrix
    sparse matrix of transition counts (raw, not symmetrized)