IAIndex.js - use a dedicated function for adding count + refresh count when using the searchbar