I keep getting a "varlist not allowed" error when I write my forvalues loop, but I copied the syntax from the help file. I can't figure out what I am doing wrong... Would appreciate help!

forvalues i = 1/20 {
quietly sum if visit_id == `i' & visit_id != .
local N == r(N)
display `i' _col(20) `N'
}