count instead of sizeof