Add countMissingCenters function
Fix selection of missing centers