Statistics for An agent based layered framework to facilitate intelligent Wireless Sensor Networks