I am trying to send sub model count information with the main model to HTML template. I have PROJECT and Companies models:

```
class Projects(models.Model):
    name = models.CharField(max_length=255)
    note = models.CharField(max_length=255, default='')
    def __str__(self):
        return self.name

class Companies(models.Model):
    project = models.ForeignKey(Projects, on_delete=models.CASCADE)
    name = models.CharField(max_length=255)
    note = models.CharField(max_length=255, default='')
    def __str__(self):
        return self.name

```

I need to show, projects have how many companies(company count):

```
Project name   |    company.no     
  project1     |       3     
  project2     |       5

```