print total number of pairs to select and number of pairs written