Modify the following Workspace Manager resource:
Dtwm*workspaceCount: n
For more information, see "To Change the Number of Workspaces on a System-Wide Basis".