Full counting statistics in the gapped XXZ spin chain