Fix the count_global method example (with PA)
Merge branch 'develop' of github.com:ktbs/ktbs into develop