Generate the size of the struct