I have a df as follows:

```
QUESTIONCODE      SUBJETCS
    1            English  
    1            French
    2            English
    3            Japanese
    4            English
    4            Japanese

```

And I would like to create a pivot table where both the index and the column would be my SUBJECTS unique values from df, and it would be filled by the number of QUESTIONCODE's belonging to the combination of SUBJECTs represented by each index and column. Then, the result would be:

```
         English      French        Japanese
English     3            1              1
French      1            1              0
Japanese    1            0              2

```

I have already tried some ways using pandas functions as groupby, pivot\_table and crosstab, but I still could not get the result shown above.

Could anyone please help me on that?