 
 					# Add it to the database
 					database.add(document)
+					++imported
 
 					# Log
 					docpad.log('debug', "Imported  tumblr post #{i}/#{tumblrPosts.length}: #{document.getFilePath()}")
 
 				# Log
-				docpad.log('info', "Imported #{tumblrPosts.length} Tumblr posts...")
+				docpad.log('info', "Imported #{imported}/#{tumblrPosts.length} Tumblr posts...")
 
 				# Complete
 				return next()

			database = docpad.getDatabase()
			docpadConfig = docpad.getConfig()

			# Log
			docpad.log('info', "Importing Tumblr posts...")


				# Inject our posts
				eachr tumblrPosts, (tumblrPost,i) ->
					# Prepare
					tumblrPostId = parseInt(tumblrPost.id, 10)
					tumblrPostMtime = new Date(tumblrPost.date)
					tumblrPostDate = new Date(tumblrPost.date)

					# Fetch
					document = docpad.getFile({tumblrId:tumblrPostId})
					documentTime = document?.get('mtime') or null
					documentTime = new Date(documentTime)  if typeof documentTime is 'string'

					# Compare
					if documentTime and documentTime.toString() is tumblrPostMtime.toString()
						# Log
						docpad.log('debug', "Skipped   tumblr post #{i}/#{tumblrPosts.length}: #{document.getFilePath()}")

						# Skip
						return

					# Prepare
					documentAttributes =
						data: JSON.stringify(tumblrPost, null, '\t')
						meta:
							tumblrId: tumblrPostId
							tumblrType: tumblrPost.type
							tumblr: tumblrPost
							title: (tumblrPost.title or tumblrPost.track_name or tumblrPost.text or tumblrPost.caption or '').replace(/<(?:.|\n)*?>/gm, '')
							date: tumblrPostDate
							mtime: tumblrPostMtime
							tags: (tumblrPost.tags or []).concat([tumblrPost.type])
							relativePath: "#{config.relativeDirPath}/#{tumblrPost.type}/#{tumblrPost.id}#{config.extension}"

