pcount algorithm for detecting per-flow packet loss