[PATCH 4/5] dinput: Split enum_objects_count helper from enum_objects_init.