Display number of rows, as a number

I’ve got it to work by changing the field type to a textbox. What do I need to do with the above code to make it work for select list?