Add query form. Display defects count