Statistics for Automated Extraction of Behaviour Model of Applications