Maybe listing all modules in a model can be helpful if you want to see parameters in each layer:
for name, module in model.named_modules():
     print(name, sum(param.numel() for param in module.parameters()))

It will print all modules and modules’ number of parameters including activation functions or dropout.