Is there a function that allows me to get the number of photo's attached to a post and that also grabs the url of the first attachment to go to the attachment page for each post?
Here is an example of what i want to accomplish, that i did in photoshop

Do you see the number sixteen next to the thumbnails, thats what i want to accomplish, a code that allows the users to know how many photo's are attached to the current post they are reading and also have the number work as a link.
I want the link to grab the first photo attachment url.
My attachment are set up like this
/year-month-day/post-title/attachment
Is this even possible?