Change documents count method