calculate the number of projects for the user