num_rep_cols function

Number of repeated columns