md_count as a program