How to know how many layers (and neurons in the layer) to be added in a neural netwok?

When defining a neural network’s architecture how do I know the number of layers to be added and the number of neurons in each layer ? I know we are supposed to do hit and trail but how exactly should I start ?

Please go through this article.


Thanks for such fast reply.