Added error checking for incorrect pop/push #

Added error checking for incorrect # of pop / push characters in a given
identifier mapping