Use updated AtomicCounterBuilder API

Change-Id: I4e61615e4e52398db1f82eb7db747e89b4a210cd
diff --git a/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java b/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java
index 64371ee..5a4f5d8 100644
--- a/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java
+++ b/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java
@@ -100,7 +100,8 @@
         portCounter = storageService.atomicCounterBuilder()
                 .withName(PORT_COUNTER)
                 .withMeteringDisabled()
-                .build();
+                .build()
+                .asAtomicCounter();
         eventDispatcher.addSink(BigSwitchEvent.class, listenerRegistry);
         //portCounter.compareAndSet(0, 1);     // Start counting from 1, doesn't work??
         buildPorts();