Imported the codecount target from flat_make branch