returning count as value in sensor and gateway maps