Added counter for import function