separate env and user code counting
count-nodes displayed wrong env number when env is not loaded