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.