$items = get_posts( array(
'post_type' => 'inventory',
'numberposts' => -1,
'taxonomy' => 'status',
'term' => 'in-stock'
) );
$count = count( $items );
echo $count;
$items = get_posts( array(
'post_type' => 'inventory',
'numberposts' => -1,
'taxonomy' => 'status',
'term' => 'in-stock'
) );
$count = count( $items );
echo $count;