Count command - what am I missing?

First time scripter, first time poster!!!

In the snippet of script I’ve copied below, I cant get Applescript to return the correct answer… There are 3 files in the folder identified in the path. When running this script, the “display dialog” says:

“There are 0 images in my import folder…”

What is happening? Do I have the count command written and ‘parenthesed’ properly?

Here’s the script lines:

set photocount to count (every file of alias “MBP:Users:medmonds:Desktop:Imported:”)

display dialog “OK. There are " & photocount & " images in my import folder. Please choose what they are for.” buttons {“x”, “y”, “z”} default button 3

PLEASE HELP!
Thanks.

Parentheses, plus you need the Finder to get the files: (the “get” assures that the item in parens happens first)

tell application "Finder" to set photocount to count (get files of alias "MBP:Users:medmonds:Desktop:Imported:")

Now thats a speedy resolution! That worked. Thanks!