In number theory, the Euler's totient function, often denoted as phi, counts the number of integers up to a given integer n that are relatively prime to n. It is a crucial tool in many areas of mathematics, especially in modular arithmetic and cryptography, such as RSA encryption.