Help with Python coding - how to populate a table with the getCount_management number

Discussion created by asmart72 on May 6, 2013
Latest reply on May 6, 2013 by csny490
I am trying to get the row count resulting number into a shapefile.  I can see the row count when the python is executed but have no idea how to populate an existing table with this number.  The code is counting the lines from "Area_of_AddressChange.shp" and I would like my resulting count number in the "Coded" shapefile.

Here is my code so far:

[CODE] import arcpy
from arcpy import env

env.workspace = " C:\TEMP\New File Geodatabase.gdb"
#layer = "Coded"
# Count the number of lines in the following shapefile

Thank you.l