Hi Vinayak,
Correct vertex count is ( 400332 non-unique, 34693 unique).
g.V().has('property1', 'A').aggregate('v'), all the vertex having property1 = A might be getting included in count in your second query because of eager evaluation (does not matter they have outE with property1 = E or not)
Regards,
Amiya