Added statisticAction.
Added implementation of TextStatistic class.