Update prog_count.v

bug fixed, remove redundant stuff, add stall signal