You need to create a rule for that. Create a rule which will be invoked during project creation and invoke a script. In script add logic to generate number and assign to newly created project.
Other way: Create new action called "Create Project" Implement it internally to create content and assign system generated name.