How do I find the number of tags for a word in UNQ_C6

I don’t understand what do you mean with “For each unique POS tag that the current word can be”, none of the inputs contains this information.

P​lease help! I am stuck

It just means you have to iterate over all the POS tags (you already calculate number of POS tags earlier), don’t worry too much about the wording. Because an unknown word can be any POS tag, you’re just finding the probabilities using the algorithm.