Is there any difference between these two sentences?

1- I have a right to do it.
2- I have right to do it.

I just want to know whether the word "right" is a mass noun or a countable noun in this case. Can someone tell me the rule?