<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def n_first_author_papers(self, refresh=True):
 """Return number of papers with author as the first author."""

        first_authors = [1 for ab in self.get_journal_abstracts(refresh=refresh)
                         if ab.authors[0].scopusid == self.author_id]
        return sum(first_authors)