<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def position(self):
 """ Returns an integer corresponding to the position of the post in the topic. """

        position = self.topic.posts.filter(Q(created__lt=self.created) | Q(id=self.id)).count()
        return position