knex.js Count
knex('users').count('active', {as: 'a'})Outputs:select count(`active`) as `a` from `users`
Witty Worm
knex('users').count('active', {as: 'a'})Outputs:select count(`active`) as `a` from `users`