Added wakelock in counting activity.