Find the number of x-digit numbers whose product of digits is N
Golfscript 42 31

~10\?.10/\,&gt;{10base{*}*1$=},,\;


Input: Expects the numbers N and x as command line arguments (separated by space).

The program can be tested here.