= Creating Counters
Create strong and weak counters with the {brandname} CLI.

.Procedure

. Create a CLI connection to {brandname}.
. Run the [command]`create counter` command with the appropriate arguments.
.. Create `my-weak-counter`.
+
[source,json,options="nowrap",subs=attributes+]
----
[//containers/default]> create counter --concurrency-level=1 --initial-value=5 --storage=PERSISTENT --type=weak my-weak-counter
----
+
.. Create `my-strong-counter`.
+
[source,json,options="nowrap",subs=attributes+]
----
[//containers/default]> create counter --initial-value=3 --storage=PERSISTENT --type=strong my-strong-counter
----
+
. List available counters.
+
[source,json,options="nowrap",subs=attributes+]
----
[//containers/default]> ls counters
my-strong-counter
my-weak-counter
----
+
. Verify counter configurations.
+
.. Describe `my-weak-counter`.
+
[source,json,options="nowrap",subs=attributes+]
----
[//containers/default]> describe counters/my-weak-counter

include::json_examples/weak_counter.json[]
----
+
.. Describe `my-strong-counter`.
+
[source,json,options="nowrap",subs=attributes+]
----
[//containers/default]> describe counters/my-strong-counter

include::json_examples/strong_counter.json[]
----
