I found the solution incase anyone is looking for it
<?php
$args = array(
'post_type' => 'guides',
'post_status' => 'published',
'taxonomy-name' => 'category slug of taxonomy',
'numberposts' => -1,
);
echo $num = count( get_posts( $args ) );
?>