Add a count to mapped values for how many times they are returned