(Bloomberg) -- Even if Boris Johnson can strike a Brexit deal with the European Union, does he have the numbers to get it past Parliament?

That hurdle tripped up his predecessor, Theresa May. While British negotiators haggled with their European Union counterparts this week, trying to hammer out an agreement, another set of talks took place in London. Members of Parliament have been going into Johnson’s office to discuss whether they can support him.

In charge of wooing MPs is Johnson’s political secretary, Danny Kruger, who has been speaking not just to Conservatives but to opposition lawmakers who might be tempted to support a deal. The opposite of his more famous and abrasive colleague Dominic Cummings, Kruger is a gentle and thoughtful former political speech-writer who has set up two charities to help people on the margins of society.

But can it be done? Here’s how the numbers stack up.

Target: 320

Once non-voting MPs are accounted for, Johnson needs 320 MPs on his side to win any vote in the House of Commons.

Baseline: 259

The last time Theresa May tried to get her deal through, in March, she had the support of 279 Conservatives. They’re mostly likely to back a Johnson deal too, but there are some problems.

Johnson expelled a group of MPs from the party in September after they backed legislation blocking a no-deal Brexit. They were joined by Amber Rudd, who resigned in sympathy. Also out of the party is Nick Boles, who quit the Conservatives earlier this year in frustration at the Brexit deadlock.

As a result there are question marks against 19 former Tories who previously backed May’s deal. On top of that number, one deal-backing Conservative, Chris Davies, lost his seat to a Liberal Democrat in a recall election.

That leaves Johnson 61 votes short. Where can he go?

‘Gaukeward Squad’: 19

The expelled Tories, who take their name from former Justice Secretary David Gauke, are temperamentally loyalists -- some had never voted against their party before September. Many of them are looking for a way back in. Given that their objection to Johnson’s strategy was the fear he was pursuing a no-deal divorce, they may be happy to get back into line if he reaches an agreement.

But it’s not certain. Gauke has questioned whether Johnson’s promises can be trusted, while former Chancellor of the Exchequer Philip Hammond has warned of the economic dangers of not having a close relationship with the EU. Several of them, including Antoinette Sandbach, have suggested the U.K. needs to hold another referendum.

Johnson would be doing very well if he got all of them on side.

Democratic Unionist Party: 10

Johnson has worked hard to try to keep Northern Ireland’s DUP engaged, spending 90 minutes talking to them on Tuesday evening and meeting them again on Wednesday. They have deep reservations about anything that creates any kind of border between Britain and Northern Ireland. But they also fear a no-deal Brexit, or Labour Leader Jeremy Corbyn becoming prime minister. Backing Johnson’s deal might conceivably be the least-worst option.

The DUP are the big prize, because they would unlock...

The Spartans: 28

The self-titled “Spartans” are Conservative MPs who refused to vote for May’s deal. They chose their name to recall the fearsome Ancient Greek warriors who held off a numerically superior Persian force at the Battle of Thermopylae.

When Johnson became prime minister, the Spartans were adamant they opposed any but the most minimal Brexit agreement. But in recent weeks they have begun to see the virtues of compromise. This is the result of the Benn Act, legislation that aims to prevent the U.K. leaving on Oct. 31 unless Johnson has reached a deal. It’s made the Spartans fear losing Brexit altogether.

The leader of the Spartans, Steve Baker, said on Tuesday he was optimistic Johnson could reach a “tolerable” deal. But another, former Northern Ireland Secretary Owen Paterson, was more critical. If the DUP are on board, most of the Spartans will fall into line. But even without the DUP, many are desperate to get Brexit over the line.

Two Spartans, at least, are fairly sure to back a deal: Priti Patel and Theresa Villiers are both in Johnson’s Cabinet.

Labour: 21

May pinned her hopes on winning the support of a significant minority of MPs from the opposition Labour Party who believe the 2016 referendum result must be honored.

She struggled to get more than five to vote with her, but 15 who didn’t back her last time joined some who did in signing a letter this month urging the EU to do a deal. That might imply a commitment to actually vote for such an agreement. There’s also Kate Hoey, a fierce supporter of Brexit, who’s likely to vote the same way as the Spartans.

Against that is the fear of retribution from their party if they do so. Leader Jeremy Corbyn and his team sense that defeating Johnson’s deal is a key step on their route to beating him at an election. Others in the party see defeating a deal as essential to securing another referendum.

Any Labour MP voting with the government risks expulsion, though a handful are retiring at the next election anyway so might not see that as an effective threat.

Independents: 5

Four independent MPs backed May’s deal in March. A fifth, John Woodcock, might also be tempted.

Other MPs: 2

Two possible supporters defy categorization. Liberal Democrat Norman Lamb, who is stepping down at the next election, represents a seat that voted to leave the EU and has been critical of his party’s anti-Brexit stance. And Jo Johnson, brother of the prime minister, voted against the deal in March, agreed to join his brother’s Cabinet, then resigned. Both could potentially back a deal to settle the issue.

The Risks?

This tally gives Johnson a pool of 85 votes from which to find the 61 he needs. It’s tight, but feasible. There is a question, however, of whether he might lose some support, for example among those Tories who voted for a deal in March and regretted doing so afterward.

There’s also another intriguing possibility. When Theresa May was prime minister, she said a Brexit deal that split Northern Ireland from Great Britain was one that no prime minister could accept. Now she’s a former prime minister and if that’s the path Johnson takes, could she live with it?

She’ll almost certainly stay loyal, but then Johnson did make her life very difficult, so it’s hard to be sure.

To contact the reporter on this story: Robert Hutton in London at rhutton1@bloomberg.net

To contact the editors responsible for this story: Tim Ross at tross54@bloomberg.net, Thomas Penny, Adam Blenford

©2019 Bloomberg L.P.