for n=2, there is one more easy method. Just count total number of relations for n=2 which is 22x2 = 16. Now remove those which are not transitive.
eg: if A={1,2} then, relations which will not be transitive will be - {(1,2),(2,1)}, {(1,2),(2,1),(1,1)},{(1,2),(2,1),(2,2)} which are 3. So total number of Transitive relations will be 16-3 = 13.