Counts the number of positive integers up to a given integer that are relatively prime with that integer.