Small change to get_count function