No of Units in Neural network

How to choose the number of Units in each layer of a neural network?

Inputs are the number of features.
Outputs are the number of labels.
The hidden layer is by experimentation.