It runs once per post in the database.  It runs once.  The Loop doesn't run in template files.  It runs once per fetched post.