SELECT 'form' AS component; SELECT 'Text' AS name, 'textarea' AS type, :Text AS value; SET w=COALESCE(:Text, ''); SELECT 'text' AS component, 'Count: '||sqlpage.exec('python3', 'count.py', $w) AS contents; -- import sys; print(len(sys.argv[1].split()))