The above is not a 2 layer neural network. In a n layer neural network, ‘n’ corresponds to the number of hidden layers.
Keeping the jargon aside, Each neuron in the input connects to every neuron in the second layer. This means to any of the output neurons you have 10 connections from the input.
As there are 5 outputs, total number of layers = 10 * 5 = 50.