Ugly Numbers Codeeval

Count the number of expressions that can be created from a number