Update primitive count in status bar when the app is idle.