select PackageID0,type0,packageVer0, count(*) from dbo.v_GS_SCANPACKAGEVERSION
group by PackageID0,type0,packageVer0