The votes have been counted and the 2021 race for the Senedd is over.

Labour has secured half the seats in the next Welsh Parliament and will try to govern without a formal coalition in a great personal victory for Mark Drakeford.

However, when you dig down into the stats there is a lot going on beneath the surface. We have gone through to data to pick out some of the stories you may have missed.

Mark Drakeford won twice as many votes in Cardiff West than Ukip won across Wales

There are any number of stats you could pull out to illustrate the implosion of Ukip. Five years ago they had seven members in the Senedd, today they have none.

They won just one fifteenth as many constituency votes as they did in 2016 - down from 127,038 to 8,568. Their regional vote collapsed as well.

It's particularly striking that just in one of Wales' 40 constituencies, Mark Drakeford won 17,655 votes - more than twice as many constituency votes as Ukip won across Wales.

Nor is it just that the devo-sceptic vote was split this time. Five years ago, Ukip won 12.5% of the constituency vote. This time, Ukip, Reform and Abolish won only 3.83%. Even if you add in the very different Propel, it only gets to 4.62%.

Those votes all went back to the Tories, Labour and even Plaid. Maybe the pandemic just persuaded a lot of people they wanted more tried and tested parties in charge.

714 - the number of votes by which the Lib Dems held on to their regional seat in the Senedd

In a constituency, a difference of 714 votes would make it a marginal seat. Across a region of eight constituencies, a vote difference of that margin is breathtakingly close.

The system used to work out who gets seats on Wales' regional lists is complex but you can express the slump in the Lib Dem vote very simply. Had they won 715 votes fewer across eight constituencies in mid and west Wales, they would today not have a representative in the Senedd.

In their target seats, where they have historically done well, the Lib Dems collapsed. Brecon and Radnorshire, Ceredigion, Cardiff Central, and Montgomeryshire were once synonymous with the Liberal Democrats in Wales. Today that is no longer true.

In Brecon and Radnorshire, where the popular longstanding MS Kirsty Williams stood down, the Lib Dem vote plummeted by 25 percentage points. In Ceredigion they lost 22% of the electorate. In Montgomeryshire, they lost 11% . In Cardiff Central, which they had touted as a two horse race between them and Labour as well as investing some serious time and effort, they lost 16% of the electorate and ended up with just 5,460 votes compared to 13,000 for Labour.

It was only their leader Jane Dodds scraping a seat in the Mid and West Wales regional election that stopped them being completely wiped out.

19.5% - the percentage of the total vote that Plaid lost in the Rhondda as its support collapsed

Adam Price

This was in many ways a Marmite election for Plaid. There is no way that Plaid leader Adam Price can be anything other than disappointed.

Yes, the party gained one MS. Yes, the party was just 21 regional list votes away from gaining a second regional MS in North Wales and denying the Conservatives their second spot on the list. But that wasn't the script.

Last autumn Mr Price told WalesOnline that "anything other than First Minister would be a failure" and now they have gained one solitary seat. This election Plaid Cymru put Welsh independence front and centre of their campaign so could there be an argument that this failed?

Well it depends where you look. Plaid made some decent gains in their heartlands:

In Arfon the got most of the votes at the expense of Labour who fell 10%. So clearly their platform was striking a chord with some the base. However, this seems to have come at the expense of the Valley seats that they need to win and hold if they are ever going to be the largest party.

Here we see a very different story.

They lost a fifth of the electorate in both Rhondda and Blaenau Gwent. There may have been local factors that exaggerated this decline but it is not a resounding endorsement of the leader's strategy. In an election where the smaller parties' vote collapsed to the benefit of Labour and the Tories, Plaid stood still up. You can read a full analysis of this here.

Five - the number of extra seats the Conservatives won

The Tories will be disappointed that Labour won a working majority but that shouldn't disguise the fact that the Conservatives did make some gains with five more seats. The party's share of the vote also rose significantly from 21.1% five years ago to 26.1% today.

There were some seats where they saw a significant increase in vote share with Brecon and Radnorshire, Newport East, Dwyfor Meirionnydd and Alyn and Deeside all seeing double digit percentage point increases.

The only lost vote share in six of 40 seats and of them, and of those Gower and Cardiff North were down only by single percentage point.

46.6% - turnout was up

Turnout increased to 46.6% from 45.5% which, given there was a pandemic, is quite good news.

The five places with the highest turnout were:

The five places with the lowest turnout was:

The areas with the biggest increases in turnout were Alyn and Deeside (4.62%), Cardiff South and Penarth (4.44%) and Monmouth (3.69%).

So why does turnout matter when analysing an election? Well it can be seen as a benchmark of how engaged the electorate are with the process. Historically low turnouts in previous elections were often pointed to by anti devolution parties as a reason to abolish the Senedd.

The recent pandemic has raised the public's awareness of devolved matters which may have been a reasons for the increase in turnout. However, Merthyr Tydfil and Rhymney, one area often at the heart of the pandemic in Wales, actually saw by far the largest fall in turnout with it dropping eight percentage points.

49.3% - the percentage of the electorate in Cardiff West who put a tick in the box next to Mark Drakeford's name.

Mark Drakeford scored a huge personal victory in his Cardiff West seat.

In 2016 he narrowly held onto his seat after a close call with Neil McEvoy, then of Plaid Cymru. The Labour leader got 11,381 votes to Plaid's 10,205. This time around things were different with the First Minister getting a whopping 17,665 votes compared to the 6,454 from his nearest challenger the Tories.

Increasing a majority by 10,000 seats is pretty impressive. Some of this is down to local circumstances given that the popular local candidate Neil McEvoy left Plaid. However this backs up the opinion polls going back to last summer in that Mark Drakeford has immense personal popularity.

Wales Matters delivers the best of WalesOnline's coverage of politics, health, education, current affairs and local democracy straight to your inbox.

Now more than ever this sort of journalism matters and we want you to be able to access it all in one place with one click. It's completely free and you can unsubscribe at any time.

To subscribe, click here, enter your email address and follow the simple instructions.

Five - more parties would be represented in the Senedd (at least) if we had a truly proportional system of election

Because Wales doesn't have a truly proportional electoral system, the final make up of the Senedd doesn't fully reflect the range of votes cast in Wales.

This graphic allows you to compare what the Senedd would look like under a proportional system compared to what actually happened. If everyone in Wales voted as they did in the regional ballot under a truly proportional system, then there would be nine parties represented in the next Welsh Parliament not just four:

You can read a full analysis of it here.