Statistics of Single-Molecule Detection