I'm using Laravel and have a very specific query that I don't know how to implement with query builder.

The query:

```
SET @c_num=0;

SELECT *, @c_num:=@c_num+1 AS 'COUNT' 
FROM table_name 
WHERE USERID = 2
ORDER BY id

```

Thank you