Sometimes you remember that a tool started with systemd- but not the rest of the name. compgen is the engine behind tab completion, and you can call it yourself.
-c lists command names: programs on your PATH, plus builtins, functions and aliases:
compgen -c | sort -u | grep '^systemd-'
compgen -c | sort -u | wc -l
That is the same list Tab would offer you, but now you can filter it with grep, count it or save it.
Other letters list other things. compgen -A function gives the shell functions you have loaded, compgen -a the aliases, compgen -v all variable names and compgen -b the builtins. Add a word after it to get only names that start with it, like compgen -c dock.
The output contains duplicates when a name exists in more than one place, which is why I’d put sort -u behind it. It also reflects only this shell: a folder added to PATH in another terminal is not in the list, and neither are programs that need sudo to see. In zsh there is no compgen unless you load bash compatibility, so this one is really for bash.
Further reading: Bash manual: Programmable Completion Builtins