I wish to give a page number to some part on my small page. Something similar to 7 of 22. I have found a lot of ways to behave such as this, but less than this...

First, to Pages, not Posts. Next, this is within the sidebar. The 2nd number should be the entire quantity of brother or sister pages and also the first number ought to be the current page's position from menu_order.

What is the simplest method of doing this?

Thanks

Here's a good way which will operate in your sidebar:

<?php
        $page_id = $post->ID;
        $page_parent = $post->post_parent;
        if ($page_parent) { // there's a parent page, get the children
            $args = array(
                'parent' => $page_parent,
                'child_of' => $page_parent,
                'hierarchical' => 0,
                'sort_column' => 'menu_order'
            );
        }
        else { // no parent, so just get top level pages
            $args = array(
                'parent' => 0,
                'sort_column' => 'menu_order'
            );
        }
        $my_pages = get_pages($args);
        while ($page = current($my_pages)) { // find this page's position in the page array
            if ($page->ID == $page_id) {
                echo key($my_pages) + 1;
            }
            next($my_pages);
        }
        $result = count($my_pages);
        echo " of " . $result;
    ?>