changed count so centered text works properly