fixes #2603
Manually updating a magic number doesn’t work in the long run. With this change, the number of atoms contained in include/atoms_NET_SUPPORTED.xmacro is used. fixes #2230