Counter

Current count:

@functions { int currentCount = 0; void IncrementCount() { currentCount++; } }