The present disclosure provides a medicine dispenser, which can detect the number of medicines such that an accurate number of medicines can be discharged for packing, a medicine discharging method, and an automatic packing machine including the medicine dispenser. The medicine dispenser includes a frame and a medicine transfer unit attached to the frame and transferring medicines one pill at a time to an outside of the medicine dispenser. The medicine transfer unit includes a detection unit that detects the number of medicines dropping from a medicine container to be packed, and a transfer unit that pushes the medicines, the number of which is detected by the detection unit, into a packing passage connected to a packing unit to transfer the medicines to the packing unit.