add number of pairs in plot