generate Root elements and Additions elements counters for OER
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index a357469..1d022b1 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -409,7 +409,7 @@
 		});
 		OUT("};\n");
 
-		if((roms_count + aoms_count) && (arg->flags & A1C_GEN_PER)) {
+		if((roms_count + aoms_count) && (arg->flags & (A1C_GEN_OER|A1C_GEN_PER))) {
 			int elm = 0;
 			int comma = 0;
 			comp_mode = 0;