@rkbnair -
The .NET SDK has the Increment function, so something like:
var result = bucket.Increment("thecounterkey");
if(result.Success)
{
//do something with result
}
That will create a key if it doesn’t exist and increment it by one; if the key exists, it will increment the key by 1.
-Jeff