Use Monitor for locking Stack and Counter
Merge pull request #14 from simeonwillbanks/monitor

Use Monitor for locking Stack and Counter