The court may appoint counsel to represent the petitioner if the respondent is represented by counsel.