Even if you don't know CS very well, I dare you to take a look at the JavaScript this compiles to and call it more readable:
(req, res)->
getUserIds(req.query)
.then (ids)->
Promise.all ids.map (id)->
getUser(id).then (user)-> user.friends.count
.then (response)-> res.send 200, response
.catch (error)-> res.send 500, error