Hi @Sv_Erick, thanks for reaching out!
Subtasks do not inherit the project from their parent tasks right now. For this reason, you will not see subtasks counted in the Dashboard unless that have been added to the project manually. You can affiliate subtasks with projects by going into the subtask details and using “Tab+P” to open the project field or by going to the upper right drop-down and selecting “Add to Project.”
I also suggest you to add your vote to this request: Allow to automatically add subtasks to project
I’ll make sure to keep you posted once I have any updates about this feature!