{"action":"closed","issue":{"url":"https://api.github.com/repos/svent/sift/issues/62","labels_url":"https://api.github.com/repos/svent/sift/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/svent/sift/issues/62/comments","events_url":"https://api.github.com/repos/svent/sift/issues/62/events","html_url":"https://github.com/svent/sift/issues/62","id":125644057,"number":62,"title":"Feature - Add option to get a global result count","user":{"login":"Rican7","id":742384,"avatar_url":"https://avatars.githubusercontent.com/u/742384?v=3","gravatar_id":"","url":"https://api.github.com/users/Rican7","html_url":"https://github.com/Rican7","followers_url":"https://api.github.com/users/Rican7/followers","following_url":"https://api.github.com/users/Rican7/following{/other_user}","gists_url":"https://api.github.com/users/Rican7/gists{/gist_id}","starred_url":"https://api.github.com/users/Rican7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rican7/subscriptions","organizations_url":"https://api.github.com/users/Rican7/orgs","repos_url":"https://api.github.com/users/Rican7/repos","events_url":"https://api.github.com/users/Rican7/events{/privacy}","received_events_url":"https://api.github.com/users/Rican7/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-08T16:29:03Z","updated_at":"2016-01-08T17:52:21Z","closed_at":"2016-01-08T17:52:20Z","body":"**Sift** already includes an option (`--count`) to display a simple **count** of results per file. Unfortunately, there's no easy way to then get a single count of all found matches.\r\n\r\n**Ack** currently has this ability by combining the `--count` and `--no-filename` options, which is quite honestly very awkward, but it works.\r\n\r\nThe alternative is to pipe the **Sift** output to a script that adds all of the lines in the output. Unfortunately, that's quite awkward to do in a linux shell, let alone Windows:\r\n\r\n![screen shot 2016-01-08 at 11 08 05 am](https://cloud.githubusercontent.com/assets/742384/12202940/64eccb0a-b5fa-11e5-97f7-60297f1c5082.png)\r\n\r\nIf this feature/option were to be added to **Sift**, I'd personally suggest not following the **Ack** way of doing things, as the dual options are awkward and hard to discover, but that's just me. :stuck_out_tongue: "}}