However, you could use phrases like:
* A period of incarceration
* A term of confinement
* A sentence of imprisonment
* A stretch in jail
* A stint in prison
These phrases convey the concept of imprisonment without needing a specific collective noun.