added a counter to output a numbered list of names