diff --git a/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php b/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php
index a98e718696..07649aeba7 100644
--- a/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php
+++ b/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php
@@ -58,6 +58,14 @@ public function getIterator() {
     return parent::getIterator();
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function count() {
+    $this->ensureLoaded();
+    return parent::count();
+  }
+
   /**
    * Automatically create the first item for computed fields.
    *
@@ -68,7 +76,14 @@ public function getIterator() {
    */
   protected function ensureLoaded() {
     if (!isset($this->list[0]) && $this->definition->isComputed()) {
+      // Create the first item in the list which will load the computed alias
+      // value if it exists.
       $this->list[0] = $this->createItem(0);
+      // If no alias actually exists remove the empty item. This ensures that
+      // count() will not return 1 for an empty list.
+      if ($this->list[0]->isEmpty()) {
+        unset($this->list[0]);
+      }
     }
   }
 
diff --git a/core/modules/path/src/Plugin/Field/FieldType/PathItem.php b/core/modules/path/src/Plugin/Field/FieldType/PathItem.php
index 41063812dd..bf43f154e0 100644
--- a/core/modules/path/src/Plugin/Field/FieldType/PathItem.php
+++ b/core/modules/path/src/Plugin/Field/FieldType/PathItem.php
@@ -174,12 +174,12 @@ protected function ensureLoaded() {
         if ($alias) {
           $this->setValue($alias);
         }
-        else {
+        elseif (count($this->values)) {
           // If there is no existing alias, default the langcode to the current
           // language.
           // @todo Set the langcode to not specified for untranslatable fields
           //   in https://www.drupal.org/node/2689459.
-          $this->langcode = $this->getLangcode();
+            $this->langcode = $this->getLangcode();
         }
       }
       $this->isLoaded = TRUE;
diff --git a/core/modules/path/tests/src/Kernel/PathItemTest.php b/core/modules/path/tests/src/Kernel/PathItemTest.php
index 9a85a27958..0e2eaf8d90 100644
--- a/core/modules/path/tests/src/Kernel/PathItemTest.php
+++ b/core/modules/path/tests/src/Kernel/PathItemTest.php
@@ -49,16 +49,63 @@ public function testPathItem() {
 
     $node_storage = \Drupal::entityTypeManager()->getStorage('node');
 
+    // Ensure that empty() and count() act the same no matter which order they
+    // are called in.
+    // First test with an entity that doesn't have the path field set.
+    $node = Node::create([
+      'title' => 'Testing no path',
+      'type' => 'foo',
+    ]);
+    // Test using count() first.
+    $this->assertEquals(0, count($node->get('path')));
+    $this->assertTrue($node->get('path')->isEmpty());
+
+    $node->save();
+    $this->assertEquals(0, count($node->get('path')));
+    $this->assertTrue($node->get('path')->isEmpty());
+
+    $node = Node::create([
+      'title' => 'Testing no path',
+      'type' => 'foo',
+    ]);
+    // Test using isEmpty() first.
+    $this->assertTrue($node->get('path')->isEmpty());
+    $this->assertEquals(0, count($node->get('path')));
+
+
+    $node->save();
+    $this->assertTrue($node->get('path')->isEmpty());
+    $this->assertEquals(0, count($node->get('path')));
+
+    // Test with an entity with path field set.
+    $node = Node::create([
+      'title' => 'Testing create()',
+      'type' => 'foo',
+      'path' => ['alias' => '/this-is-not-the-path-you-are-looking-for'],
+    ]);
+    // Test using count() first.
+    $this->assertEquals(1, count($node->get('path')));
+    $this->assertFalse($node->get('path')->isEmpty());
+    $this->assertEquals('/this-is-not-the-path-you-are-looking-for', $node->get('path')->alias);
+
+    $node->save();
+    $this->assertEquals(1, count($node->get('path')));
+    $this->assertFalse($node->get('path')->isEmpty());
+    $this->assertEquals('/this-is-not-the-path-you-are-looking-for', $node->get('path')->alias);
+
     $node = Node::create([
       'title' => 'Testing create()',
       'type' => 'foo',
       'path' => ['alias' => '/foo'],
     ]);
+    // Test using isEmpty() first.
     $this->assertFalse($node->get('path')->isEmpty());
+    $this->assertEquals(1, count($node->get('path')));
     $this->assertEquals('/foo', $node->get('path')->alias);
 
     $node->save();
     $this->assertFalse($node->get('path')->isEmpty());
+    $this->assertEquals(1, count($node->get('path')));
     $this->assertEquals('/foo', $node->get('path')->alias);
 
     $stored_alias = $alias_storage->lookupPathAlias('/' . $node->toUrl()->getInternalPath(), $node->language()->getId());
diff --git a/core/modules/path/tests/src/Unit/PathFieldItemListTest.php b/core/modules/path/tests/src/Unit/PathFieldItemListTest.php
new file mode 100644
index 0000000000..f1cf0fa522
--- /dev/null
+++ b/core/modules/path/tests/src/Unit/PathFieldItemListTest.php
@@ -0,0 +1,42 @@
+<?php
+
+namespace Drupal\Tests\path\Unit;
+
+use Drupal\Core\DependencyInjection\ContainerBuilder;
+use Drupal\Core\Field\FieldTypePluginManagerInterface;
+use Drupal\Core\TypedData\DataDefinitionInterface;
+use Drupal\Core\TypedData\TypedDataInterface;
+use Drupal\path\Plugin\Field\FieldType\PathFieldItemList;
+use Drupal\Tests\UnitTestCase;
+
+/**
+ * @coversDefaultClass \Drupal\path\Plugin\Field\FieldType\PathFieldItemList
+ * @group path
+ */
+class PathFieldItemListTest extends UnitTestCase {
+
+  /**
+   * @covers ::count
+   */
+  public function testCount() {
+    $definition = $this->prophesize(DataDefinitionInterface::class);
+    $definition->isComputed()
+      ->willReturn(TRUE)
+      ->shouldBeCalled();
+    $parent = $this->prophesize(TypedDataInterface::class);
+
+    $list = new PathFieldItemList($definition->reveal(), $parent->reveal());
+
+    $field_plugin_manager = $this->prophesize(FieldTypePluginManagerInterface::class);
+    $field_plugin_manager->createFieldItem($list, 0, NULL)
+      ->willReturn($this->prophesize(TypedDataInterface::class)->reveal())
+      ->shouldBeCalled();
+    $container = new ContainerBuilder();
+    $container->set('plugin.manager.field.field_type', $field_plugin_manager->reveal());
+    \Drupal::setContainer($container);
+    $this->assertEquals(1, count($list));
+    $this->assertEquals(TRUE, $list->isEmpty());
+    $this->assertEquals(1, count($list));
+  }
+
+}
