Statistics for Design and Analysis of an IoT Based Framework for Crowd Management