Considering beam as axially rigid, the degree of freedom of a plane frame shown below is
9
8
7
6
only beam is rigid not the both columns hence number of members must be 1