fix namespace and add test for getCountForStatement