Libmonkey: Implement simple stat counters

Signed-off-by: Vladimir Cernov <gg.kaspersky@gmail.com>