As long as you've got your terminal window open for ping you could check the manual page for that utility.
In this case the -n is not valid. You probably want -c for count. Or you could just leave out the parameters and enter the name of the host to ping.
Press <cntrl><c> to stop it pinging.