added an impl to int getNumParameters() for NNOptimizer