Fix pattern format for count