Sending a counter back to where it entered the game

I have a module with various At-Start Stacks that essentially act as spawning points for a certain type of counter (by using Replace with Other; each spawning point only needs to yield one counter). There are 12 different Stacks on the board where counters of that type can come in. What I’d like to know is, once the Replace With Other has happened and the new counter is on the board, is there a way to remember which of the 12 stacks it came in at, and then have a command (presumably Send to Location) that moves it back to the place where it spawned?