made fetch_count programmable