added num_parameters
added docstring
Merge pull request #502 from goodfeli/num_parameters

added num_parameters