User.findAll({attributes: [[sequelize.fn('COUNT', sequelize.col('*')), 'email']],raw: true }).then(function(users) { console.log(users) })
sequelize.fn(聚合的函數,聚合裏面的參數)email 爲聚合的列
sequelize.col('*') 往聚合裏面添加參數