Counting bit program