Fix rule count