Counting Transitive Relations