At each proceeding conducted pursuant to the provisions of this chapter, the person who is the subject of the proceeding shall have the right to assistance of counsel.