Select WUA.Version0, count(WUA.Version0) as ‘Total’
From v_GS_WINDOWSUPDATEAGENTVERSIO WUA
Group By WUA.Version0