How to Integrate aur updates counter in the bash script using paru

Just a note here if a ‘script’ is still wanted… in a different thread, I posted a couple of useful bash functions for a) counting pending updates and b)showing a formatted list of pending updates. These could easily be turned into scripts (if needed that way) and swapping in a paru command instead of the yay command should be easy enough.