title: How to count queryset from ManyToManyField in django?
body: <p>In models:</p>
  
  <pre><code>class Match(models.Model):
      user = models.ManyToManyField(User, blank=True)
      hot_league = models.ManyToManyField('HotLeague', blank=True)
  
  class HotLeague(models.Model):
      user = models.ManyToManyField(User, blank=True)
      price_pool = models.IntegerField()
      winner = models.IntegerField()
  </code></pre>
  
  <p>In views:</p>
  
  <pre><code>match = Match.objects.filter(user=request.user)
  hot_league = match.hot_league.filter(user=request.user).count()
  </code></pre>
  
  <p>Here in views <code>count()</code> is not working.
  How can I count the <code>hot_league</code> which situated in <code>match</code> ??</p>