$module_result.path contains "An array of hashes containing information about the path which leads to the page that is currently being viewed." http://ez.no/doc/ez_publish/technical_manual/3_9/templates/the_pagelayout/variables_in_pagelayout#module_result
You can view the content with the following:
{$module_result.path|attribute(show,2)}
Adding the "|count" on the end will return the number of items in the array. http://ez.no/doc/ez_publish/technical_manual/3_9/reference/template_operators/variable_and_type_handling/count