graph: added back object selection counter

Never thought it'd see the light of day again, yet it did. In a very hacky way. Remember kids, never cast entire buffers as const char pointers. Not good for ya. Well, you won't be able to use sizeof but still.