Make #count and #configure class methods instead.

We accidentally regressed in the last commit.