View the latest created categories

I am creating a section on my site that will display the last five categories created. How could I do that?

UPDATE:
The code below is what I want, just like to know how to apply in order, if the latest published categories.

<?php
$cat = get_query_var('cat');
$categories=get_categories('child_of='.$cat);
if ($categories) { ?>

<div class="subcat-archive">
<?php
$cat = get_query_var('cat');
$categories=get_categories('child_of='.$cat);
if ($categories) {
foreach($categories as $term) {
echo $title . '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> | '; }
}
?>
</div>
<?php
}
else {
?>
<?php
}
?>

Solutions Collecting From Web of "View the latest created categories"

the id of the categories is autoincrement so you can sort by id to find the last one :

$args = array(
    "type" => "post",
    "orderby" => "id",
    "order" => "DESC",
    "number" => "5",
    "taxonomy" => "category",
    "hide_empty" => FALSE, // TRUE or FALSE depending what you want
);

$categories = get_categories($args);

use this code for access categories

$args = new  WP_Query( array(
  'type'     = 'post',
  'taxonomy' = 'taxonomy_name',
  'order'    = 'ASC',
  'orderby'  = 'id'
));
//this function are used for access all categories
$query = get_categories($args);