[#btck-WitnessStackApi-04-CountItems]
= xref:btck.adoc[btck]::xref:btck/WitnessStackApi-04.adoc[WitnessStackApi]::CountItems
:relfileprefix: ../../
:mrdocs:

Returns the number of items on the witness stack&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
CountItems() const;
----

== Return Value

The item count&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
