title: Check the number of parameters from state_dict in pytorch
body: <p>SO has an answer about how to check the total # of params from the model:
  <code>pytorch_total_params = sum(p.numel() for p in model.parameters())</code></p>
  
  <p>However, how does one check the total # of params from
  the <code>state_dict</code>?</p>
  
  <p><code>state_dict = torch.load(model_path, map_location='cpu')</code>?</p>