Store object graph

can we replace this with `++objectTypeCount[objectDetail->className]`