sentences:  In 1798, most of the county was given liberty as an independent canton of Sargans, until the county was annexed to the Canton of Linth in the Helvetic Republic, later in the same year.When Napoleon's Act of Mediation restored the Old Swiss Confederation in 1803, Sargans passed to the newly established canton of St. Gallen.See Counts of Werdenberg in Sargans
  
   (The counting of the counts follows the counts of Werdenberg) 
  
  
  The county is pawned to Austria and delivered to the Toggenburgs