added implementation of statistics for C language, regenerated code