Sure, you simply count the number of bars. Each bar is one minute long. So the number of bars tells you the number of minutes.
But we can't do anything without knowing the rules for marking that candle at 9:45.
From the title of your question it seems you want some sort of a chart label that displays the count since the last live trade on the ticker symbol loaded on the chart. If that is the case then we actually have two things to address. One is how on earth does the code know that you took a live trade on that instrument. The second is very minor, simply counting bars.
Let me know if I understand the request correctly or if you had something else in mind.
Edit: From the clarification in the comment section below I have a solution. I also updated the title of the question to describe exactly what this code does. This is will make it easier for the rest of our viewers to locate this solution through search.
declare lower;
def data1 = GetTime() / 1000 / 60;
plot data2 = data1 - data1[1];
The line for data1 gets the start time of each bar on the chart, then converts milliseconds to minutes. The line for data2 subtracts the time of the previous bar from the time of the current bar. The code is set to display on the lower subgraph. For a ticker symbol that has gaps in the trade data the line will be jagged and show the number of minutes between bars so you can see the gaps in the trade data. For a ticker symbol that has zero gaps the line will display a constant value across the bottom of the chart.