The noun contrarity can be countable or uncountable.
The singular form of contrarity is also contrarity.