nftables counters added to the default table don't save
I've recently starting experimenting with using alpine as a home router. The nftables init script has an option to save counters to a state file. However if you add a counter to the default table in /etc/nftables.nft the counter will be saved but not reloaded. This is because the state file is included at the end of /etc/nftables.nft and the counters are already defined. If the state file is included at the beginning of /etc/nftables.nft then the counters will be reloaded and adding new counters to the default table works as expected. Another alternative would be to move the default table in /etc/nftables.nft to a file in /etc/nftables.d/... then the include order would work as expected. A benefit of moving the default table to nftables.d is to provide an example to the user as to how to use the .d directory.