Removing incorrect use of count to use strlen