select Port.name0 as ‘Port’, count(name0)
from dbo.v_GS_PARALLEL_PORT PORT
group by Port.name0