move StgEntCounter type into its own header