add count_only option to get_wfs and get_fws and speed up counting operations in lpad scripts