Add counts to ingestion process scripts

- Fix set_prop
- Refactor poll_storage