Add packet count and interval to external pings

A simple little change to add support for packet count and intervals for external pings. Unfortunately I don't have a non-linux system to test this on, so only implemented interval for Linux.