A generalization of the concept of size