[IMP]hr: used read_group instead of calling many time search_count and lint the code.