To get the length of each side for a perimeter annotation, you can follow this forum post:
Afterwards you can create a free-text annotation next to the sides with the contents representing the lengths.
Alternatively, you can create multiple distance measurement annotations in the UI, for each of the sides of the perimeter. The annotation comes with the caption representing the length of the distance.