Counting pairs where gcd is 1