[PATCH net 2/4] selftests: net: tsn_lib: create common helper for counting received packets