Using machine learning to design a flexible LOC counter | IEEE Conference Publication | IEEE Xplore