Modify unsynced entries counter to make it collection-agnostic