{"id":189,"date":"2024-11-06T13:27:40","date_gmt":"2024-11-06T13:27:40","guid":{"rendered":"https:\/\/contentbot.ai\/documentation\/?post_type=docs&#038;p=189"},"modified":"2024-11-06T13:27:41","modified_gmt":"2024-11-06T13:27:41","password":"","slug":"commands-count","status":"publish","type":"docs","link":"https:\/\/contentbot.ai\/documentation\/docs\/commands-count\/","title":{"rendered":"Commands: \/count"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h_360d3bffbf\">Overview<\/h2>\n\n\n\n<p>The \/count command can be used to count the number of words\/sentences within a phrase\/variable<\/p>\n\n\n\n<p>Input text can be inline text, or variables and the count(output) will replace the command in the content window, or the output can be directed to a variable.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_a8f0b5e12a\">Examples<\/h2>\n\n\n\n<p>Example1: <em>Count the words in within the #topic variable<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/count [#topic]<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/count [#variable]\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/sLstbzyd25g?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Example 2: <em>Counts the words in a static sentence, this could be a variable<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/count words [Example sentence with five words]<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/count words [Phrase]\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/GZ04U9x54-s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Example 3: <em>Counts the sentences in the #content and stores it to a variable<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/count sentences [#content] (as #sentences)<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/count sentences [#variable] (as #newvariable)\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/hOatKZT5TPs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>In the example above, the number of sentences in the existing variables for the article #content is counted and the count (output) is then directed to a new variable #sentences<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_04cddbfa4f\">Arguments<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>words<\/li>\n\n\n\n<li>sentences<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview The \/count command can be used to count the number of words\/sentences within a phrase\/variable Input text can be inline text, or variables and the count(output) will replace the command in the content window, or the output can be directed to a variable. Examples Example1: Count the words in within the #topic variable \/count [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[9],"doc_tag":[],"class_list":["post-189","docs","type-docs","status-publish","hentry","doc_category-commands"],"aioseo_notices":[],"year_month":"2026-04","word_count":147,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"contentbot","author_nicename":"contentbot","author_url":"https:\/\/contentbot.ai\/documentation\/author\/contentbot\/"},"doc_category_info":[{"term_name":"Commands","term_url":"https:\/\/contentbot.ai\/documentation\/docs-category\/commands\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":1,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/189\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/189\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_category?post=189"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_tag?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}