This code gives an example of how to count the number of parameters in the model.
How do I check the number of parameters of a model? - PyTorch Forums 4
If you want to check that the parameters are changing, you can try printing the sum of the parameters rather than the count and see if this is changing between training epochs.