Get vertex and edge count

Hi Team,

I am simply trying to get the count of vertex and edges after completion data ingestion.

The following PyTigerGraph methods are returning me inconsistent results if queried immediately.
getVertexCount()
getEdgeCount()

But if I query using the same methods after a period of time, it returns me right number.

However, the count check from GSQL method using following query works perfectly fine all the time

SELECT count(*) from node

Thanks for your help.