adding a counter to prevent comms when no images are found
Former-commit-id: 710b03a2c887ff891cb689fa0fd88eebc7120a91