Adds documentation to addCounts function