@property_cached<EOL><INDENT>def count(self):<DEDENT>
if self.gzipped: return int(sh.zgrep('<STR_LIT:-c>', "<STR_LIT>", self.path, _ok_code=[<NUM_LIT:0>,<NUM_LIT:1>]))<EOL>else: return int(sh.grep('<STR_LIT:-c>', "<STR_LIT>", self.path, _ok_code=[<NUM_LIT:0>,<NUM_LIT:1>]))<EOL>
Should probably check for file size changes instead of just caching once #TODO