added validation of count-producer