add optional count to command