How to Count Vowels in Lua - Code Snippet

How to perform 'Count Vowels' in Lua.

example.lua
-- Task: Count Vowels
-- Language: Lua

function count_vowels() 
    -- Implementation for Count Vowels
    local result = ...; -- Initialize variable
    -- TODO: Implement core logic here
    -- Step 1: Prepare data
    -- Step 2: Process Count Vowels
    print("Done");
end
AdSense Slot