added a size function

also incremented and decremented based on pop and push