added function to count number of nodes
in the future, we want to go with 9 shells in the bethe lattice
another status for threads that aren't used at all