Quantum counting algorithm
The Quantum counting algorithm is a quantum algorithm for efficiently counting the number of solutions for a given search problem. The algorithm is based on the quantum phase estimation algorithm and on Grover's search algorithm.
Source: Wikipedia — Quantum counting algorithm (CC BY-SA 4.0)