There are a total of five licenses in this example. The data logging box is, in essence, a gateway so there is a license involved.
As to your third question, I’m not sure I understand the question. But it may help to state that anything that runs a gateway service needs a license.
