Wordpress: display post count for category and day

I have tried so many variations of code to achieve this, so any help would be appreciated…

I want to display a post count for each category, but from a certain time frame.

For example the number of posts for category 1 this week.

The code I have to get the post count is


<?php
$chosen_id = 1;
$thisCat = get_category($chosen_id);
echo $thisCat->count;
?>

Thanks