I need to count and sort student numbers of course based on level like this:
ID|NAME |Course LEVEL 1|LEVEL 2|LEVEL 3| 1 | Tom | 3| 3 | 1 |