-- Database schema
| Problem_Category_Codes : problem_category_code [ TEXT ] primary_key , problem_category_description [ TEXT ] | Problem_Log : problem_log_id [ INT ] primary_key , assigned_to_staff_id [ INT ] Problem_Log.assigned_to_staff_id = Staff.staff_id , problem_id [ INT ] Problem_Log.problem_id = Problems.problem_id , problem_category_code [ TEXT ] Problem_Log.problem_category_code = Problem_Category_Codes.problem_category_code , problem_status_code [ TEXT ] Problem_Log.problem_status_code = Problem_Status_Codes.problem_status_code , log_entry_date [ TEXT ] , log_entry_description [ TEXT ] , log_entry_fix [ TEXT ] , other_log_details [ TEXT ] | Problem_Status_Codes : problem_status_code [ TEXT ] primary_key , problem_status_description [ TEXT ] | Product : product_id [ INT ] primary_key , product_name [ TEXT ] , product_details [ TEXT ] | Staff : staff_id [ INT ] primary_key , staff_first_name [ TEXT ] , staff_last_name [ TEXT ] , other_staff_details [ TEXT ] | Problems : problem_id [ INT ] primary_key , product_id [ INT ] Problems.product_id = Product.product_id , closure_authorised_by_staff_id [ INT ] Problems.closure_authorised_by_staff_id = Staff.staff_id , reported_by_staff_id [ INT ] Problems.reported_by_staff_id = Staff.staff_id , date_problem_reported [ TEXT ] , date_problem_closed [ TEXT ] , problem_description [ TEXT ] , other_problem_details [ TEXT ] |
-- -- How many problems did the product called "voluptatem" have in record?

SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem";