pt1 count inversions completed