return len(WORDS_COUNT_RE.findall(in_str))
+def word_count(in_str: str) -> int:
+ return words_count(in_str)
+
+
def generate_uuid(omit_dashes: bool = False) -> str:
"""
Generated an UUID string (using `uuid.uuid4()`).
Returns a string of the specified size containing random
characters (uppercase/lowercase ascii letters and digits).
- random_string(9) # possible output: "cx3QQbzYg"
+ >>> random.seed(22)
+ >>> generate_random_alphanumeric_string(9)
+ '96ipbNClS'
"""
if size < 1: