Move card counter class into namespace