add function to count size of giving dir