numberOfAllocations

Computes the number of different allocations of the resource held by the entity.