counter circuit use pic micrcontroller