add counts for sensors and actions