A square is composed of many particles with the constraint that distance between every particle is the fixed.so such a square is moving in XY plane.
if i consider two particles they have 4-1 =3degree of freedom(one is subtracted due to constraint that distance between particles are fixed).if i consider third particle it is defined by two co-ordinates and two constraints and therefore no degree of freedom...the same for fourth fifth and so on...
so my answer is three
and i don't find any difference in this respect with a triangular lamina...
I do not know the answer to the question...please comment on this and say if you have any other opinion.