A number conserving derivation of the BCS equations