Beamer not showing total slide count

Very confused. I have a simple beamer/markdown presentation. On rstuduo.cloud it compiles and looks fine.

When I work local (using either TinyTex or Miktex-doesn't matter) the page count is not correct. The slides will show 1/1,2/1,3/1 and so forth instead of for example 1/10,2/10 and so on.

Any clue why the total slide count is stuck at 1 and not being calculated correctly?

Thanks!

edit:
My belief is that \inserttotalframenumber is not being calculated correctly. My guess is the file has to be knitted twice so it knows the total number of slides. Is it possible some switch is set so that is not happening? If I look at \inserttotalframenumber its value is 1.

edit:
I am loading all packages I think I need including the lastpage package.

I do not know the answer to your question, but can you please check out this thread? It seems to be very similar:

Thanks!! It is similar but doesn't give the answer-well sort of. If one compiles the intermediate tex file the page numbers are correct. Something seems to be broken here.

How does one directly contact a user here? @mattwarkentin is completely on point with his question. It does appear \inserttotalframenumber is NOT being calculated correctly.