Sometimes the function does not work, especially when running in parallel. Instead, we should use `FieldValue.increment()` operations as suggested by Firebase.