def statistics(limit): """ This method serves a statistic of most popular randomly selected words.""" statistic = Word.get_statistic(limit).to_json() return statistic