Hello,I am a beginner to electronics and after researching in internet I came to know that we should use comparator and counter to do the same and I tried to do the same using logic gates and flip flops.But I guess it is not working properly.So I request anyone to help me by identifying the mistake in circuit and how to rectify it.I have attached it below.Thank you
