counting total number of possible relations on a set