added background syncing of discard count. Refs item:408