Menu item with update text (title) in real time
This is how I solved a similar problem:

You need implement the hook_menu() and use the 'title callback'

function YOUR_MODULE_menu() {
    $items = array();

    $items['perfil-usuario'] = array(
        'title' =&gt; 'perfil',
        'description' =&gt; t('User Profile'),
        'title callback' =&gt; 'change_title_profile_link',
        'page callback' =&gt; 'go_to_profile',
        'access callback' =&gt; 'user_is_logged_in',
        'expanded' =&gt; TRUE,
        'weight' =&gt; 100,
        'menu_name' =&gt; 'main-menu',
        'options' =&gt; array('attributes' =&gt; array('class' =&gt; array('perfil-usuario'))),
        ); 

    return $items;
}


In this function you can change the link title 

function change_title_profile_link() {
    return rand();
}


Here you can redirect to the desire url, if the url change you can implement this function

function go_to_profile() {
}