ipfilter: Calculate the number of elements in ipf_errors
It serves no purpose to manually manage the IPF_NUM_ERRORS count.
Calculate it instead.
Reviewed by: emaste, markj
Differential revision: https://reviews.freebsd.org/D53308
(cherry picked from commit ab3c9853285b4907dac147ce2f818e3fb44df5a3)