Data scientists at Twitter (X) need to identify the reach of different accounts. To do this, they require a simple tally of followers for every user on the platform.
Write an SQL query that will, for each user, return the number of followers.
| user_id(INTEGER) | follower_id(INTEGER) |
|---|---|
| 0 | 1 |
| 1 | 0 |
| 2 | 0 |
| 2 | 1 |
| user_id(INTEGER) | followers_count(INTEGER) |
|---|---|
| 0 | 1 |
| 1 | 1 |
| 2 | 2 |