It's somewhat similar to this one: 

```
$query_args = apply_filters( 'msm_sitemap_query_args', array(
			'year' => $year,
			'monthnum' => $month,
			'day' => $day,
			'order' => 'DESC',
			'post_status' => 'publish',
			'post_type' => self::get_supported_post_types(),	
			'posts_per_page' => apply_filters( 'msm_sitemap_entry_posts_per_page', self::DEFAULT_POSTS_PER_SITEMAP_PAGE ),
			'no_found_rows' => true,
		) );
```

But the different is mainly the `post_type` they each fetch and that the other one only grabs the post IDs as thats whats needed to fetch the post meta.

The other also uses WP_Query to setup the environment whereas the `get_indexed_url_count` function just uses `get_posts`.

Is it worth trying to combine them somehow?