Fixed trainingexamples count problem.