Path::count() documentation also indicates it counts the relations in a path, which isn't true as it gives a count of nodes or relations in a path depending on the set context.
Path::getLength() should probably count the number of relations in a path, as the doc block indicates, and the doc block for Path::count() should be updated to indicate it returns a count based on the context set.
Path::getLength() just calls Path::count().
Path::count() documentation also indicates it counts the relations in a path, which isn't true as it gives a count of nodes or relations in a path depending on the set context.
Path::getLength() should probably count the number of relations in a path, as the doc block indicates, and the doc block for Path::count() should be updated to indicate it returns a count based on the context set.