counting costs