If your cousins are all female:
* J'ai 7 cousines. (This is the most common and natural way to say it)
If your cousins are all male:
* J'ai 7 cousins. (This is the most common and natural way to say it)
If your cousins are a mix of male and female:
* J'ai 7 cousins. (Again, the most common and natural way to say it)
More formally:
* Je possède sept cousins. (This is more formal and less common)
Remember that in French, the number "seven" (sept) is invariable, meaning it doesn't change based on gender.