title: how to display number of comments in django
body: <p>I'm just little bit confused, I have two models </p>
  
  <pre><code>class Comment(models.Model):
      user = models.ForeignKey(MyProfile)
      parent = models.ForeignKey("self", null=True, blank=True)
      path = models.CharField(max_length=350)
      post = models.ForeignKey(Post, null=True, blank=True, related_name="commented_post")
      text = models.TextField()
  </code></pre>
  
  <p>And </p>
  
  <pre><code>class Post(models.Model):
      #comment = models.ForeignKey(Comment)if I do this I get an error but how do I display the number of comments? I was thinking to do {{post.comment.count}}
  </code></pre>
  
  <p>I tried adding the following function under comment model</p>
  
  <pre><code>@property
      def get_comment_count(self):
          return self.comment.count
  </code></pre>
  
  <p>but this doesn't do the job, I think I have to use something like <code>{{comment.post.count}}</code>maybe...any help please..</p>