Find the Count of Monotonic Pairs II