def METHOD_NAME(ranks: List[List[int]]):
    tallies = np.zeros((len(ranks[0]), len(ranks[0])))
    names = sorted(ranks[0])
    ranks = np.array(ranks)
    # we want the sorted indices
    ranks = np.argsort(ranks, axis=1)
    for i in range(ranks.shape[1]):
        for j in range(i + 1, ranks.shape[1]):
            # now count the cases someone voted for i over j
            over_j = np.sum(ranks[:, i] < ranks[:, j])
            over_i = np.sum(ranks[:, j] < ranks[:, i])
            tallies[i, j] = over_j
            # tallies[i,j] = over_i
            tallies[j, i] = over_i
            # tallies[j,i] = over_j
    return tallies, names