You can use the list.files () function to list the names of the files in your working directory. You can also use the length () function to count the number of files.