The product of all digits of positive integer M is 105. How many such Ms are there, with four digits?