#P is the class of problems of the form of exactly counting the number of solutions to a polynomially-verifiable question (that is, to a question in
NP), while loosely speaking,
PP is the class of problems for which there is a
polynomial-time algorithm that gives a correct answer more than half the time. The class P#P consists of all problems that can be solved in polynomial time if you have access to instantaneous answers to any counting problem in #P (polynomial time relative to a #P
oracle). Thus Toda's theorem implies that for any problem in the polynomial hierarchy there is a deterministic
polynomial-time Turing reduction to a
counting problem. An analogous result in the complexity theory over the reals (in the sense of
Blum–Shub–Smale real Turing machines) was proved by
Saugata Basu and
Thierry Zell in 2010 and a complex analogue of Toda's theorem was proved by
Saugata Basu in 2011. ==Proof==