Hi,
you can count them as follows:
num_params = sum(param.numel() for param in model.parameters())

or:
num_params = sum(param.numel() for param in model.parameters() if param.requires_grad)

to only consider trainable parameters.