Moved profiling flag to pd_internal and added maxCount when enabled to dictionary struct.