Updated ping example.

Now always print the ping results, even if an unexpected
number of packets are reported as received.