Asking about number of neighbors
I would like to ask this question.In a wireless ad hoc network, I would want to count the number of neighbors (nodes within transmission range) that a node has at any given time, how could I do that with ns2? How can I trace that number?Thank you very much in advance.
P.S: I am not Chinese-speaking person so please answer me in English and I am very sorry if the title's prefix is inappropriate to this post's content. Thank you all for this nice forum.