Skip to the content
Documentation

count_words

No ratings yet

Summary

Returns the number of words that make up the input string.

Usage

input|count_words()

Returns

An integer revealing the number of words that make up a string.

Description

This operator counts and returns the number of words that are found within the input string.

Examples

Example 1
{'Where do you want to publish today?'|count_words()}

The following output will be returned: "7".

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.