Reduce stack size by one

I have realized just now that compasses are stackable, so I can't just replace the held item with air. How do I take away one item from a stack with commands?
Continue to help post