Reference get
The Get method returns the current value of this counter based on the name of the counter. If this counter does not exist, the method creates it and resets it to 0.
Grammar
Counters.Get (CounterName)
Parameters
CounterName
A string that contains the name of the counter.
Example
The value of the counter can be displayed with the <%= counters.get (CounterName)%>. Assigns the value of a counter to a variable with <% Countervar = Counters.Get (CounterName)%>.
The following script shows the polling score for a poll of favorite colors.
<% If colornumber = "1" Then
Counters.Increment ("Greencounter")
Else
If Colornumber = "2" Then
Counters.Increment ("Bluecounter")
Else
If Colornumber = "0" Then
Counters.Increment ("Redcounter")
End If
End If
End If%>
<p>current vote tally:
<p>red: <% =counters.get ("Redcounter")%>
<p>green: <% = Counters.Get ("Greencounter")%>
<p>blue: <% = Counters.Get ("Bluecounter")%>