Counting the number of items in a folder

I can’t seem to figure this out, but how would you count the number of items in a folder? For example, under Music/iTunes/iTunes Music/Downloads/Podcasts. I’m guessing it would be something like

tell app "Finder"
count the number of items in folder x
end tell

Am I close?

Hi

Try this:

tell application "Finder" to set c to count every item of folder (choose folder)