[#btck_witness_stack_count_items]
= btck&lowbar;witness&lowbar;stack&lowbar;count&lowbar;items
:mrdocs:

Return the number of items in a witness stack&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
size&lowbar;t
btck&lowbar;witness&lowbar;stack&lowbar;count&lowbar;items(xref:btck_WitnessStack-0e.adoc[btck&lowbar;WitnessStack] const* witness&lowbar;stack);
----

== Return Value

The number of witness stack items&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *witness&lowbar;stack* [in]
| Non&hyphen;null&period;
|===


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