Get element count from command line