To determine the number of layers, just keep adding more layers until the test error does not improve anymore
You can add layers until your model starts to overfit your training set. Then you should add dropout or another regularization method.
To determine the nodes for your case:
To have more details on Neural Network, study Neural Network Tutorial. Also, Machine Learning Algorithm would be an amazing
Hope this answer helps you!