Stable pairs, linear systems and the Verlinde formula