Limit Number of Pieces in a Stack

I’m looking at adding some features to the Advanced Civilization Module and I’d like to restrict my population pieces to only stacking in piles of 5 to help with visually counting the pieces in zones of the map. Is there a way to do this?