In mathematics, the prime-counting function is the function counting the number of prime numbers less than or equal to some real number x.[1][2] It is denoted by π(x) (unrelated to the number π).