The right hand side is how it will appear in the Qur'an, the left hand side is the make-up of this.
It seems that the hamzah is part of the first word, when actually it is part of the second. Therefore, as a general rule, it may be safer for such people who are not 100% sure to remain consistent with their counts for both mutasil and munfasil - i.e choose the same length of elongation for both, either the 4 or 5 counts.
Click on the 'Summary
Chart for Madd' link on the right hand sidebar to view a summarised
chart for the types and branches of Madd