How do I connect to Apple Music
It depends on your device, so how do you listen to it?
On my iphone and it’s not counting
I guess you are referring to the official Last.fm iOS app. You have to add the songs you want to scrobble to your Apple Music library first, then play them, then scan them, then submit them.
If you're not using Apple Music as in like, the streaming service and you're just using the music player itself, download Marvis from the app store, it has Last.FM scrobbling natively built in and scrobbles as you listen. Cheers!