Add pasteboard.changecount() function

PR #316 to the right branch.