Adding Number check for count parameter

Converting count to Number if given as a string to the arguments of the function.