Added Count

Added Count to Calculate Minimum Movements