added counting of results without commands