Include the number greater than L upto the maximum number whose digit = coutDigitsL
if ( getDistinct ( firstDigitL , countDigitsL ) >= L ) count += ( 9 - firstDigitL + 1 ) ; else count += ( 9 - firstDigitL ) ;