added numDecoding sol