Fixed attractor count code, still some bugs with frozen nodes