This is one of the sources of the dialyzer errors. Should it be `non_neg_integer()` instead? Below in `BG_DEFAULT_STAT_HIST` we initialize some `bg_count()` typed values to 0.