Thanks people - I just searched other threads and found the following:
Onions aren't allowed because of their carb content. But the gherkins are OK.
However - I know from experience that it's probably better to go for the gherkins that are not in sweet vinegar. The added sugar in the vinegar really messes my weight loss up. So you'll be better off with gherkins that come in vinegar without sugar added.