Changed linebot to keep count on stack