Eh, "book" is widely used as the unit of literature. If someone says "I wrote a book!", you don't assume that they created exactly one physical item by writing on a lot of pages and tying them together or anything.
This is orthogonal. A glass can either be the physical item, or used as unit of literature. In the current context, nobody cares about the unit.