more flexible way of counting exceptions added for url fetching module