# hcount raw file size

**URL:** <https://forum.kx.com/t/hcount-raw-file-size/11471>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [February 1, 2017, 3:43am UTC](https://forum.kx.com/t/hcount-raw-file-size/11471 "2017-02-01T03:43:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vortexsbkny](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@vortexsbkny](https://forum.kx.com/u/vortexsbkny)\
**Post date:** [February 1, 2017, 3:43am UTC](https://forum.kx.com/t/hcount-raw-file-size/11471/1 "2017-02-01T03:43:00Z")

</div>

For a compressed file, I noticed hcount and read0 return its uncompressed format. I could understand for read function but  
how do I get raw size as seen by ls?

[http://www.timestored.com/kdb-guides/kdb-io-file-read-write-functions](http://www.timestored.com/kdb-guides/kdb-io-file-read-write-functions)

`:tmp/t&nbsp;set t1

(`:tmp/tz;17; 2; 6) set t1

/ for me return the same number

hcount `:tmp/t &nbsp; &nbsp; &nbsp; &nbsp;

hcount `:tmp/tz

---

<div class="post-metadata">

**Author:** ![charlie1](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@charlie1](https://forum.kx.com/u/charlie1)\
**Post date:** [February 1, 2017, 6:08am UTC](https://forum.kx.com/t/hcount-raw-file-size/11471/2 "2017-02-01T06:08:00Z")

</div>

-21!`:tmp/t
