added receive counter and recieve-counter option