Analysis Statistic Batch

Maybe these two posts are helpful for you: