Send one ping request to host with local address in the 192.168.1.x range, with last number specified by variable "COUNTER", and output only lines containing "ms" to standard output.
ping -c 1 192.168.1.$COUNTER | grep 'ms'