title: How do I change below callback code to async/await version?
body: <p>I'm trying to convert this callback to async/await but seems I can't figure out how to do it.</p>
  <pre><code>function getTotalUsersCount(callback) {
          User.count({}).exec((err, count) =&gt; {
            if (err) {
              return callback(null, 0);
            }
            return callback(null, count);
          });
        },
  </code></pre>
  <p>Also I want to change the</p>
  <pre><code>User.count({}).exec((err, count)
  </code></pre>
  <p>to this</p>
  <pre><code>const count = await User.count();
  </code></pre>