The answer was given by the user pfnuesel in the comment.
Basically you have to consider each kind of leptonic number, one for electron, one for muon and one for tauontau. These are known as "lepton family numbers." The equation was incorrect because they were both +1, but in different kinds. LHS was muon leptonic number and RHS was electron leptonic number.