<div dir="ltr"><div>Dear All,</div><div><br></div><div>I want to count the number of NACK packets received in consumer.cpp  file.</div><div><br></div><div>I have declared a variable "count" in ndn-consumer.hpp to count the number of NACK packets received.<br></div><div><br></div><div>void<br>Consumer::OnNack(shared_ptr<const lp::Nack> nack)</div><div>{</div><div>static int count=0;</div><div>count++;</div><div>.....<br></div><div>}</div><div><br></div><div>I want to access the value "count " from the ndn-simple.cc file in scratch. <br></div><div>How should I proceed?</div><div><br></div><div><br></div><div><br></div></div>