Can't display number in a textbox

Thanks Majd. I tried the toString() function, but got the same error “The text parameter of “txtRecCount” that is passed to the text method cannot be set to null or undefined.”