Add API for getting the number of rules loaded in the kernel and the size of each rule.