creating a command and sorting???

How do you write a command line that displays the number of files in the working directory with names that end with the letter S? Thanks

---------- Post updated at 09:34 PM ---------- Previous update was at 09:33 PM ----------

for unix sorry

ls -1 *s | wc -l