Sometimes, the letter y is a consonant, and other times it is a vowel. The rule for telling the two apart is simple: The letter y is a consonant when it is the first letter of a syllable that has more than one letter. If y is anywhere else in the syllable, it is a vowel.
If it is not present in the word, I would think it would then be counted as a consonant.
If it is not present in the word, I would think it would then be counted as a consonant.