The mean of a list of values is the sum of those values divided by the number of values. In the case of the statistics calculator, we already have a sum function, so the mean function can just call sum and use the result returned.
To get the number of elements in the array we needed to keep track of this ourselves as C does not retain any details about the length of the arrays you declare. This is why we have the size field in our number_data struct, so we will have the number of elements when we are asked to calculate the mean.
Have a go at coding this yourself.
Once you are finished, make sure you check that this works before moving on.