<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_line(self, line, count=1):
 """writes the line and count newlines after the line"""

        self.write(line)
        self.write_newlines(count)