Only count lost/received packet if it is not preamble
Refactor