Add support for Go and fix countc function