Print number of words per each line:
awk ‘{print NF}’ file.txt
awk 'NF==2 {print $0}' file.txt
awk ‘NF>0 {print $0}’ file.txt