The maximum number of equal non-zero subdeterminants