modified counter and corrected ping comments