use log2
Merge branch 'master' of https://github.com/orcc/orc-apps.git
using local counter instead of global counter