Implemented safer variant of FSE_count()