diff --git a/src/Service/UWService.php b/src/Service/UWService.php
index 7560191934523794837ccf181012b73c43cc06ab..362e36d142a7392ee06ea4bede710087997afe4f 100644
--- a/src/Service/UWService.php
+++ b/src/Service/UWService.php
@@ -355,23 +355,16 @@ class UWService implements UWServiceInterface {
     // Step through the menus and check for submenus and count.
     foreach ($menus as $menu) {
 
+      // Increment the menu items counter.
+      $menu_items_count++;
+
       // If there is a submenu, recursivley call the count function.
       if (isset($menu['submenu']) && count($menu['submenu']) > 0) {
 
-        // Increment the menu items counter.
-        $menu_items_count++;
-
         // Recursively check the submenu.
         $this->uwCountMenuItems($menu['submenu'], $menu_items_count);
 
       }
-
-      // If there are no submenus, simple increment the menu items counter.
-      else {
-
-        // Increment the menu items counter.
-        $menu_items_count++;
-      }
     }
   }