copied code into brite force pair counters in pairs.py