added listenNTimes to util
added callback to listenNTimes