Maybe use the dict_inc method as used in other parts of the code.
This will check if statistics are enabled + increment a value.