A function that counts the number of positive integers up to a given integer that are relatively prime to it.