Adjusting sample count of packet