Considering your example:
c is a output neuron where as a and b are input neurons to it.
and e is again a output neuron and input neuron to e are c and d.
Your network would look like.
Total neurons are 5,
3 input, 1 hidden and 1 output.
Hope this helps, feel free to ask any further questions.