A phase-diffractive optical element is designed to measure the topological charge of optical vortices. We use the scalar diffraction theory to calculate the far-field diffraction patterns. The simulation results show that almost all of the power of t