SELECT COUNT(1) AS TotalCount FROM TB_LINKED_SERVER A WHERE A.SystemId = @systemId AND A.UseYn = 1