mongoose / mongodb best way to calculate stats
<p>I have the following query`s :</p>

<pre><code>function calculate_stats() {
         Users.count().then(function(allusers) {
                Users.count().then(function(dead_users) {
                    Users.count().then(function(banned_users) {
                        Users.count().then(function(vacation_users) {
                            Users.count().then(function(in_hotel_users) {
                                var aliveusers = allusers - dead_users - banned_users;
                                var accounts = {
                                    registred: allusers,
                                    alive: aliveusers,
                                    dead: dead_users,
                                    banned: banned_users,
                                    vacation: vacation_users,
                                    inhotel: in_hotel_users,
                                    outsidehotel: aliveusers - in_hotel_users,
                                    outsidehotelonline: 0
                                };
                            });
                        });
                    });
                });
            });



        });
    }
</code></pre>

<p>but is really this the best way to nest them like that, to get the final result?
How would i acually proceed to get a good way to calculate the stats.</p>

<p>Wouldnt this be performance in-effective?</p>