revert to go-only Count function