There are a total of 64 DFAs.
Generally the total DFAs are divided into four categories.
1.X as non-final and Y as non-final
2.X as final and Y as non-final
3.X as non-final and Y as final
4.Both X,Y as final
So for example if we take first category,then again we have 4 posibilities in the view of X and 4 in view of Y.
They are for X(initial state):
1.from X both a,b transitions are going to X only
2.from X on transition a goes to Y and on transition b goes to X
3.from X on transition 'a' goes to X and on transition 'b' goes to Y
4.from X both the transitions a,b leads to state Y
Similarly for Y we have 4.
So for the first case in X we can have 4 Y cases. For total 4 X combinations we can have16(4*4).
Similarly for remaining 3 DFA categories we can have 48(3*16).
So a total of 64 DFAs are possible