Here's a small update to the solution provided by Dave Sexton. Many times you need several filters. The Filter parameter can accept only one string, while the -Include parameter can accept a string array. if you have a large tree of files, it only makes sense to get a date for comparison with one, and not for each file. Here is my updated version:
$compareDate = (Get-Date).AddDays(-3) @(Get-ChildItem -Path c:\pstbak\*.* -Filter '*.pst','*.mdb' -Recurse | Where-Object { $_.LastWriteTime -gt $compareDate}).Count
source share