How can I get the actor count in a level?

For some reason this method isn’t working. Although I’m following a tutorial and do exactly as he does but for me it doesn’t work. The variables always return 0 value. I am on 4.6 by the way