Counted the non terminal nodes in the received species tree and
displayed them in the frontend