Added NNWeightCount and unit test.

Measures the number of weights in a neural network. Can also add a
penalty for activation functions.