First pass at baseline code
first pass at complete paircounter code