cgi/html: Output NGROUPS variable as number of GROUPS

NGROUPS is used in some templates to check the validity of GROUPS.
cgi/html: Show comparison links only if there are 2 or more nodes

You cannot compare only 1 node.