Calculate In-game Triangle/Vertex count in Python?

What steps can I take in order to calculate and display in-game triangle count of an asset? By in-game I mean taking into account the hard edges, UV splits, and material splits of an asset. Say a cube for e.g would have a vert count of 24 in engine, as opposed to 8 in Blender.

I would like to adapt the AStats addon for Blender 2.8 and include this function? Can anyone point me in the right direction or provide some code?