In case you would like to count the number of parameters, you could use:
lin_params = 0
for param in l.parameters():
    lin_params += param.nelement()

conv_params = 0
for param in c.parameters():
    conv_params += param.nelement()