Switch back to argparse

Switch to argparse, make path optional, fix counting