The below PS script will count events for the current date that contain text in the specified log. Replace {{LogName}} with name of log and {{Error}} with message text.