Count, Case, Condition help

hi

please see below post

you will get idea