I’m seeing a regression in Apple Shortcuts where “Count Characters in …” says “Unable to decode file contents” when passed rich text. Workaround: Add a “Get text from (rich text)” and count with that instead. (I’m on macOS 26.5 but this might have been there for a while.)