Nightly removed python board.GetPadCount()? [SOLVED]

Can anyone that is running a nightly determine the proper method to get the pad count from a board?

I’m having difficulty with a python script that works fine in 4.0.6 stable, but don’t have access to the nightly yet.

What does these commands in the Scripting Console display?
import pcbnew
pcbnew.GetBoard().GetPadCount()

GetPadCount() seems to be there. There’s something else wrong with my python script :frowning2: