pocount argparse

Drop custom code in favour of argparse features.