improve receive counting