def get_open_comment_count(review_comments, user):
    """ Return the number of non-obsolete review comments posted on the given
        PR url, by the given user."""
    return sum(1 for review_comment in review_comments
               # In obsolote comments, the position is None
               if review_comment['position'] and
               review_comment['user']['login'] == user)