<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Layer Feature Count Function in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1633616#M97279</link>
    <description>&lt;P&gt;Hello readers &amp;amp; contributors,&lt;/P&gt;&lt;P&gt;I'm a part time non-advanced Pro user and have a layer feature count function inquiry.&lt;/P&gt;&lt;P&gt;I would like be able to have the feature account of a layer visible in a different location than the attribute table&lt;BR /&gt;even if the layer is off.&lt;BR /&gt;From the blog as I understand it the feature count can be visible 4 ways-&lt;BR /&gt;as a legend label, as a dynamic text label, as arcpy.getcount command&lt;BR /&gt;and in the attribute table. (I'm trying to avoid having million count layers on or loading it's attribute table)&lt;/P&gt;&lt;P&gt;Can I embed the feature count into the layer name alias?&lt;BR /&gt;Can I append the dynamic label code* or Legend label so it shows the feature count even when the layer is off?&lt;BR /&gt;Is there another way to see the layer count (such as in the layer properties).&lt;/P&gt;&lt;P&gt;I appreciate any advice but *I would need guidance with all code suggestions.&lt;/P&gt;&lt;P&gt;Thanks for reading,&lt;/P&gt;&lt;P&gt;Derek L.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 19:00:30 GMT</pubDate>
    <dc:creator>DerekLindner</dc:creator>
    <dc:date>2025-07-16T19:00:30Z</dc:date>
    <item>
      <title>Layer Feature Count Function</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1633616#M97279</link>
      <description>&lt;P&gt;Hello readers &amp;amp; contributors,&lt;/P&gt;&lt;P&gt;I'm a part time non-advanced Pro user and have a layer feature count function inquiry.&lt;/P&gt;&lt;P&gt;I would like be able to have the feature account of a layer visible in a different location than the attribute table&lt;BR /&gt;even if the layer is off.&lt;BR /&gt;From the blog as I understand it the feature count can be visible 4 ways-&lt;BR /&gt;as a legend label, as a dynamic text label, as arcpy.getcount command&lt;BR /&gt;and in the attribute table. (I'm trying to avoid having million count layers on or loading it's attribute table)&lt;/P&gt;&lt;P&gt;Can I embed the feature count into the layer name alias?&lt;BR /&gt;Can I append the dynamic label code* or Legend label so it shows the feature count even when the layer is off?&lt;BR /&gt;Is there another way to see the layer count (such as in the layer properties).&lt;/P&gt;&lt;P&gt;I appreciate any advice but *I would need guidance with all code suggestions.&lt;/P&gt;&lt;P&gt;Thanks for reading,&lt;/P&gt;&lt;P&gt;Derek L.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 19:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1633616#M97279</guid>
      <dc:creator>DerekLindner</dc:creator>
      <dc:date>2025-07-16T19:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Feature Count Function</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1646105#M98579</link>
      <description>&lt;P&gt;Two quick way to get a feature count outside of the methods you described already:&lt;BR /&gt;&lt;BR /&gt;Run the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/get-count.htm" target="_blank"&gt;Get Count (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;geoprocessing tool in batch mode&lt;/P&gt;&lt;P&gt;Or open the Python window on the Analysis tab and in the Geoprocessing group, click the dropdown for Python and choose Python Window.&amp;nbsp; In the Python window, copy/paste the following code into the bottom row of the Python window and hit enter to run:&lt;/P&gt;&lt;P&gt;db = r'&amp;lt;your path to the file geodatabase'&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = db&lt;/P&gt;&lt;P&gt;for ds in arcpy.ListDatasets():&lt;BR /&gt;for fc in arcpy.ListFeatureClasses('','',ds):&lt;BR /&gt;fc_path = os.path.join(db, fc)&lt;BR /&gt;fc_count = arcpy.GetCount_management(fc_path)&lt;BR /&gt;print("{0} : {1} rows".format(fc, fc_count))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PythonWindow.jpg" style="width: 787px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/139480i3E425B8A44DEF956/image-size/large?v=v2&amp;amp;px=999" role="button" title="PythonWindow.jpg" alt="PythonWindow.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 15:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1646105#M98579</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-08-27T15:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Feature Count Function</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1665258#M100087</link>
      <description>&lt;P&gt;Hello Robert_LeClair. Thank you for your suggestion &amp;amp; sorry for the delay responding. I made an .aprx of the old .mxd and made a gdb of the two feature classes. I fear I'm doing something wrong with inserting my fc and gdb location in the syntax. I'm about to create an esri support tix if I need to sent them the 617MB the but I thought I would ask you to look over my code first. Is here an appropriate place to inquiry about it?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 20:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1665258#M100087</guid>
      <dc:creator>DerekLindner</dc:creator>
      <dc:date>2025-11-12T20:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Feature Count Function</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1666121#M100154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/447268"&gt;@DerekLindner&lt;/a&gt;&amp;nbsp;- 617 MB is a large file to send Esri Support but I'm sure it's been done in the past.&amp;nbsp; I can look at your code certainly and test things on my side if you like.&amp;nbsp; Caveat though - my Python skills are a work in progress so I rely upon many sources....&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2025 11:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-feature-count-function/m-p/1666121#M100154</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-11-16T11:19:03Z</dc:date>
    </item>
  </channel>
</rss>

